TextSubstitution Algorithm
Replaces the text being masked with an equivalent (less than or equal) length text taken from the provided text file. If the original test is shorter than the first word of the masking text, the first word converted to lowercase is returned. If the original text is longer than the replacement text, then the replacement text will be repeated until the lengths are equivalent.
Algorithm Characteristics
- Algorithm: TextSubstitution
- Masking Technique: Substitution
- Supported Types: String
- Referential Integrity: true
- Conflict-free: false
- Realistic Data: false
- Reversible: false
Properties
- txtFile {
string
; required }
The name of the resource text file which contains the replacement text to use when masking. The text in the file should finsh with an end punctuation mark (. , !, ?) and a newline.
Example:"obfusware/maskingdata/loremipsum.txt"
Example JSON configuration
{
"name": "ExampleTextSubstituionMasker",
"description": "Replaces the text being masked with an equivalent (less than or equal) length of Lorem Ipsum text",
"algorithm": "TextSubstitution",
"txtFile": "obfusware/maskingdata/loremipsum.txt"
}